﻿<div id="main">
    <div id="contents">
        <form method="post" action="#" name="filters">
            <fieldset>
                <legend>
                    <label sid="fxooptional.table1_title"></label>
                </legend>
                <div class="frame_tab_layer">
                    <table class="cmenutitle" cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                        <tr>
                            <td class="frame_tab_left" width="33%">
                                <label sid="fxooptional.table1_td1"></label>
                            </td>
                            <td class="frame_tab_right" width="67%">
                                <select class="td_value" name="id208" id="id208_list">
                           <!--         <option value="-3.0">-0.3(<script type="text/javascript">fxooptional.table1_db</script>)</option>
                                    <option value="-1.5" sid="fxooptional.table1_db"></option>
                                    <option value="0" sid="fxooptional.table1_db"></option>
                                    <option value="+1.5" sid="fxooptional.table1_db"></option>
                                    <option value="+3.0" sid="fxooptional.table1_db"></option>
                                    <option value="+4.5" sid="fxooptional.table1_db"></option>
                                    <option value="+6.0" sid="fxooptional.table1_db"></option>
                                    <option value="+7.5" sid="fxooptional.table1_db"></option>
                                    <option value="+9.0" sid="fxooptional.table1_db"></option>-->
                                </select>
                                <label sid="fxooptional.table1_db"></label>
                            </td>
                        </tr>
                        <tr>
                            <td class="frame_tab_left">
                                <label sid="fxooptional.table1_td2"></label>
                            </td>
                            <td class="frame_tab_right">
                                <select class="td_value" name="id203" id="id203_list">
                  <!--                  <option value="-6.0" sid="fxooptional.table1_db"></option>
                                    <option value="-4.5" sid="fxooptional.table1_db"></option>
                                    <option value="-3.0" sid="fxooptional.table1_db"></option>
                                    <optssion value="-1.5" sid="fxooptional.table1_db"></option>
                                    <option value="0" sid="fxooptional.table1_db"></option>
                                    <option value="+1.5" sid="fxooptional.table1_db"></option>
                                    <option value="+3.0" sid="fxooptional.table1_db"></option>-->
                                </select>
                                <label sid="fxooptional.table1_db"></label>
                            </td>
                        </tr>
                        <tr>
                            <td class="frame_tab_left">
                                <label sid="fxooptional.table1_td3"></label>
                            </td>
                            <td class="frame_tab_right">
                                <input type="radio" value="0" name="id207">
                                <label sid="fxooptional.table1_radio1"></label>

                                <input type="radio" value="1" name="id207">
                                <label sid="fxooptional.table1_radio2"></label>

                                <input type="radio" value="2" name="id207">
                                <label sid="fxooptional.table1_radio3"></label>
                            </td>
                        </tr>
                        <tr id="tr185" width="100%">
                            <td class="frame_tab_left">
                                <label sid="fxooptional.table1_td4"></label>
                            </td>
                            <td id="td185" class="frame_tab_right">
                                <input class="step-input" type="text" name="id185">
                                <label sid="sysoptional.table2_exp6"></label>

                                <span id="msg185">&nbsp;</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="frame_tab_left">
                                <label sid="fxooptional.table1_td5"></label>
                            </td>
                            <td class="frame_tab_right">
                                <select id="ring" class="td_value" name="ring">
                                    <option value="0" sid="fxooptional.table1_option1"></option>
                                    <option value="1" sid="fxooptional.table1_option2"></option>
                                    <option value="2" sid="fxooptional.table1_option3"></option>
                                    <option value="3" sid="fxooptional.table1_option4"></option>
                                </select>
                                <span style="padding-left:67px;">&nbsp;</span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
            <fieldset>
                <legend>
                    <label sid="fxooptional.table2_title"></label>
                </legend>
                <table class="cmenutitle" cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tbody>
                    <tr id="tr234">
                        <td class="frame_tab_left">
                            <label sid="fxooptional.table2_td1"></label>
                        </td>
                        <td id="td234" class="frame_tab_right">
                            <input class="step-input" type="text" name="id234">
                            <label sid="fxooptional.table2_td1_note1"></label>

                            <span id="msg234">&nbsp;</span>
                        </td>
                    </tr>
                    <tr id="tr237" width="100%">
                        <td class="frame_tab_left">
                            <label sid="fxooptional.table2_td2"></label>
                        </td>
                        <td id="td237" class="frame_tab_right">
                            <input class="step-input" type="text" name="id237">
                            <label sid="sysoptional.table2_exp6"></label>

                            <span id="msg237">&nbsp;</span>
                        </td>
                    </tr>
                    <tr id="tr238">
                        <td class="frame_tab_left">
                            <label sid="fxooptional.table2_td3"></label>
                        </td>
                        <td id="td238" class="frame_tab_right">
                            <input class="step-input" type="text" name="id238">
                            <label sid="sysoptional.table2_exp6"></label>

                            <span id="msg238">&nbsp;</span>
                        </td>
                    </tr>
                    <tr width="100%">
                        <td class="frame_tab_left">
                            <label sid="fxooptional.table2_td4"></label>
                        </td>
                        <td class="frame_tab_right">
                            <input type="checkbox" onclick="read();" name="iddialtone">
                            <span style="padding-left:20px;">&nbsp;</span>
                            <font id="tr235">
                                <span id="img235" class="errormsg">&nbsp;</span>
                                <label sid="fxooptional.table2_td5"></label>&nbsp;

                                <input id="input235" class="step-input" type="text" onblur="read235();" name="id235">
                                <font class="explain">
                                    <label sid="fxooptional.table2_hz"></label>
                                </font>
                            </font>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </fieldset>
            <div class="submitFooter">
                <script type="text/javascript">
                    var buttonInfo = submitFooterButton(1,0);
                    $(".submitFooter").html(buttonInfo);
                </script>
            </div>
        </form>
    </div>
</div>
<br>
<div id="helpContainer">
    <div id="help">
        <div>
            <h2>
                <label sid="share.help"></label>
            </h2>
        </div>
        <div id="helpBody">
            <dl>


                <dt class="term">
                <label sid="fxooptional.table1_td1"></label>
                </dt>
                <dd class="definition">
                    <label sid="fxooptional.table1_td1Tip"></label>
                </dd>
                <dt class="term">
                    <label sid="fxooptional.table1_td2"></label>
                </dt>
                <dd class="definition">
                    <label sid="fxooptional.table1_td2Tip"></label>
                </dd>

                <dt class="term">
                    <label sid="fxooptional.table1_td4"></label>
                </dt>
                <dd class="definition">
                    <label sid="fxooptional.table1_td4Tip"></label>
                </dd>
                <dt class="term">
                    <label sid="fxooptional.table1_td5"></label>
                </dt>
                <dd class="definition">
                    <label sid="fxooptional.table1_td5Tip"></label>
                </dd>

                <dt class="term">
                <label sid="fxooptional.table2_td1"></label>
                </dt>
                <dd class="definition">
                    <label sid="fxooptional.table2_td1Tip"></label>
                </dd>
                <dt class="term">
                    <label sid="fxooptional.table2_td2"></label>
                </dt>
                <dd class="definition">
                    <label sid="fxooptional.table2_td2Tip"></label>
                </dd>
                <dt class="term">
                    <label sid="fxooptional.table2_td3"></label>
                </dt>
                <dd class="definition">
                    <label sid="fxooptional.table2_td3Tip"></label>
                </dd>
            </dl>

        </div>
    </div>
</div>
<script type="text/javascript">

    $(document).ready(function(){
        var arr=[];
        var unit = fxooptional.table1_db;
        arr.push('<option value="-3.0">-3.0</option>');
        arr.push('<option value="-1.5">-1.5</option>');
        arr.push('<option value="0">0</option>');
        arr.push('<option value="+1.5">+1.5</option>');
        arr.push('<option value="+3.0">+3.0</option>');
        arr.push('<option value="+4.5">+4.5</option>');
        arr.push('<option value="+6.0">+6.0</option>');
        arr.push('<option value="+7.5">+7.5</option>');
        arr.push('<option value="+9.0">+9.0</option>');
        $("#id208_list").html(arr.join(""));

        var arr2=[];
        arr2.push('<option value="-6.0">-6.0</option>');
        arr2.push('<option value="-4.5">-4.5</option>');
        arr2.push('<option value="-3.0">-3.0</option>');
        arr2.push('<option value="-1.5">-1.5</option>');
        arr2.push('<option value="0">+0</option>');
        arr2.push('<option value="+1.5">+1.5</option>');
        arr2.push('<option value="+3.0">+3.0</option>');

        $("#id203_list").html(arr2.join(""));
        var nonames = new Array("submit","iddialtone","ring");
        var sendtext = getSendText(nonames);
        sendtext+="&id=269&id=210";
        DataRequest("get_json",sendtext,function(data){
            getResult(nonames,data);
            if(data["id269"]=="yes"&&data["id210"]=="no") {
                listselect("ring","0");
            }else if(data["id269"]=="yes"&&data["id210"]=="yes") {
                listselect("ring","1");
            }else if(data["id269"]=="no"&&data["id210"]=="no") {
                listselect("ring","2");
            }else if(data["id269"]=="no"&&data["id210"]=="yes") {
                listselect("ring","3");
            }
            read235();
        });


        $("[name=submit]").click(function () {
            $(".errormsg").html('');
            var settext = getSetText(nonames);
            var sendvalue = $("#ring").val();
            if(sendvalue==0) {
                settext+="&id269=yes&id210=no";
            }else if(sendvalue==1) {
                settext+="&id269=yes&id210=yes";
            }else if(sendvalue==2) {
                settext+="&id269=no&id210=no";
            }else if(sendvalue==3) {
                settext+="&id269=no&id210=yes";
            }

            settext=settext.replace(/\#/g,"%23");
            submitform(modules["set_data"],settext);
        });

    });

	
function read() {
	if($("[name=iddialtone]").attr("checked")) {
		$("#tr235").show();
	}else {
		$("[name=id235]").attr("value","0");
		$("#tr235").hide();
	}
}

function read235() {
	if($("[name=id235]").attr("value")==""||$("[name=id235]").attr("value")=="0") {
		$("[name=iddialtone]").attr("checked",false);
		$("#tr235").hide();
	}else {
		$("[name=iddialtone]").attr("checked",true);
		$("#tr235").show();
	}
}
</script>
